﻿/*
 * This software is the confidential and proprietary
 * information of NetBay
 * Such confidential information should not be disclosed
 * NetBay copyright(c) 2010
 */

#region Using
using System.Collections.Generic;
using NetBay.Core.BusinessEntities;
using Rio.Doc.Business.Repository.Translator;
using Rio.Doc.DataAccess;
#endregion

namespace Rio.Doc.Business.Repository
{
    /// <summary>
    /// Group Repository
    /// </summary>
    public class GeneralGroupRepository : GroupDer
    {

        /// <summary>
        /// Returns all Groups
        /// </summary>
        /// <returns>The list of all Group </returns>
        public static List<Group> GetAllGroup()
        {
            return GeneralGroupTranslator.TranslateGroupWithRights(DA_Group.GetAllGroup());
        }

        /// <summary>
        /// Returns all RIO Organization Groups
        /// </summary>
        /// <param name="p_lOrganizationId">Organization Id.</param>
        /// <returns>The list of all RIO Organization Group.</returns>
        public static List<Group> GetAllGroupRioByOrganization(long p_lOrganizationId)
        {
            return GeneralGroupTranslator.TranslateGroupWithRights(DA_Group.GetAllGroupRioByOrganization(p_lOrganizationId));
        }


        public override void SetOrganizationList(long p_lUserId)
        {
            
        }

        public override void SetItemRightsList(long p_lUserId)
        {
            
        }

        public override void SetFolderTypeRightList(long p_lUserId)
        {
            
        }
    }


}
